package com.example.cash.craft.dao.persist.repository;

import com.example.cash.craft.pojo.entity.Category;
import com.example.cash.craft.pojo.vo.CategoryVO;
import com.example.cash.craft.pojo.vo.PageData;

public interface ICategoryRepository {

    int insert(Category category);

    int deleteById(Long id);

    int updateById(Category category);

    int countByName(String name);

    CategoryVO selectById(Long id);

    PageData<CategoryVO> listAll(Integer page, Integer pageSize);

}
